package com.bdqn.day0106.service.impl;

import com.bdqn.day0106.mybatis.entity.Mother;
import com.bdqn.day0106.mybatis.mapper.MotherMapper;
import com.bdqn.day0106.service.MotherService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author:Corday
 * @Date:2022/01/07/9:56
 */
@Service
public class MotherServiceImpl implements MotherService {
//    注入一个依赖
    @Resource
    private MotherMapper mm;
    @Override
    public Mother getMother(Integer mid) {
        return mm.selectMotherById(mid);
    }
}
